/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.api.wrapper.website.usercalendar;

import java.math.BigDecimal;
import java.util.Date;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.opsli.api.base.warpper.ApiWrapper;
import org.opsli.common.annotation.validator.Validator;
import org.opsli.common.annotation.validator.ValidatorLenMax;
import org.opsli.common.annotation.validator.ValidatorLenMin;
import org.opsli.common.enums.ValidatorType;
import org.opsli.plugins.excel.annotation.ExcelInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 用户日历管理 Model
*
* @author cyx
* @date 2025-07-07 15:39:07
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class UserCalendarModel extends ApiWrapper {

    /** 父级主键集合 */
    @Schema(description = "父级主键集合")
    @ExcelProperty(value = "父级主键集合", order = 1)
    @ExcelInfo
    @ValidatorLenMax(500)
    private String orgIds;

    /** 用户ID */
    @Schema(description = "用户ID")
    @ExcelProperty(value = "用户ID", order = 1)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(19)
    private Long userId;

    /** 日程标题 */
    @Schema(description = "日程标题")
    @ExcelProperty(value = "日程标题", order = 2)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(100)
    private String title;

    /** 开始时间 */
    @Schema(description = "开始时间")
    @ExcelProperty(value = "开始时间", order = 3)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @Schema(description = "结束时间")
    @ExcelProperty(value = "结束时间", order = 4)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    /** 地点（可选） */
    @Schema(description = "地点（可选）")
    @ExcelProperty(value = "地点（可选）", order = 5)
    @ExcelInfo
    @ValidatorLenMax(200)
    private String location;

    /** 提醒时间（可选） */
    @Schema(description = "提醒时间（可选）")
    @ExcelProperty(value = "提醒时间（可选）", order = 6)
    @ExcelInfo
    private String remindTime;

    /** 删除 */
    @Schema(description = "删除")
    @ExcelProperty(value = "删除", order = 8)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(1)
    private Integer delected;



}